<table cellpadding="1" cellspacing="5" style="border-spacing:15px; border-collapse:separate;">
    <tr><td width="80"></td>
      <td>&nbsp;</td>
      <td></td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td></td>
      <td align="right">广告属于类别：
        
      </td>
      <td>
      	<select name="cid" class="Ipt" id="cid" onchange="location.href='<?php echo $this->config->base_url('manager/marketing'); ?>?cid='+this.value">
        <option value="0">首页广告</option>
         <?php 
         if(!empty($channel)) {
             foreach($channel as $k=>$v) {
				 $select = $cid == $v['cid'] ? 'selected="selected"' : NULL;
                 if($v['parent'] == 0 && $v['children'] != '') echo "<option ".$select." value='".$v['cid']."'>".$v['title']. '(' . $v['en_title'] . ')' . "</option>";
             }
         }
         ?>
      </select></td>
      <td align="right">&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <?php if(!empty($marketing)) { foreach($marketing as $k => $v) {if($k != 'cid' && $k != 'mid') { if(strpos($k, 'remarks') !== false) {?>
    <tr>
      <td align="right" valign="top">广告名称：</td>
      <td align="right" valign="top">
      	<input name="<?php echo $k;?>" type="text" class="Ipt" id="<?php echo $k;?>" onfocus="this.className='IptOnF'" onblur="this.className='Ipt'" value="<?php echo $v;?>" size="20" />
      </td>
      <?php } if(strpos($k, 'value') !== false) {?>
      <td><textarea name="<?php echo $k;?>" cols="100" rows="5" class="Ipt" id="<?php echo $k;?>" onfocus="this.className='IptOnF'" style="height:80px;" onblur="this.className='Ipt'"><?php echo $v;?></textarea></td>
      <td align="left">广告内容</td>
      <td>&nbsp;</td>
    </tr>
    <?php }}}}?>
    <tr>
      <td></td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td align="right">&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td></td>
      <td>&nbsp;</td>
      <td><input class="Btn BtnNml" onMouseOver="this.className='Btn BtnHv'" onMouseOut="this.className='Btn BtnNml'" type="submit" value="确定">
      <input name="__H" value="update" type="hidden" />
      </td>
      <td></td>
      <td></td>
    </tr>
</table>
